@zonos/elements 1.3.104 → 1.3.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-e04e756f.js → cart-31e4e866.js} +1 -0
- package/dist/cjs/{createCustomEvent-3442779d.js → createCustomEvent-18fbf653.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-9f73932e.js → paypal-a101e3ca.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +8 -6
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -3
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
- package/dist/esm/{cart-8deffb25.js → cart-5621d0fe.js} +1 -0
- package/dist/esm/{createCustomEvent-eef7531d.js → createCustomEvent-a9206df5.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-44d7ebfe.js → paypal-869c30e1.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_13.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +8 -6
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm-es5/{cart-8deffb25.js → cart-5621d0fe.js} +1 -1
- package/dist/esm-es5/{createCustomEvent-eef7531d.js → createCustomEvent-a9206df5.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-44d7ebfe.js → paypal-869c30e1.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-8698d30d.system.js → p-062b6df4.system.js} +1 -1
- package/dist/zonos-elements/{p-0d9d1b05.system.entry.js → p-139e32ba.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f9f041b.system.entry.js → p-1bb59ce2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ffd09491.system.js → p-1c295409.system.js} +1 -1
- package/dist/zonos-elements/{p-ace6b9b9.system.entry.js → p-21586642.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e38e84bd.system.js → p-239331fa.system.js} +1 -1
- package/dist/zonos-elements/{p-d38ec4aa.entry.js → p-23b042ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-baf90f15.js → p-39346436.js} +1 -1
- package/dist/zonos-elements/{p-c36477c1.entry.js → p-43ef8bf8.entry.js} +1 -1
- package/dist/zonos-elements/{p-074e0cef.js → p-523c0f7d.js} +1 -1
- package/dist/zonos-elements/{p-a749580b.system.entry.js → p-5a704905.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc7fcdb2.system.entry.js → p-5b6fa002.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5fff505d.entry.js +1 -0
- package/dist/zonos-elements/p-65512b26.entry.js +1 -0
- package/dist/zonos-elements/{p-e56d52d1.system.js → p-69388c10.system.js} +1 -1
- package/dist/zonos-elements/{p-db0a8873.js → p-6a310417.js} +1 -1
- package/dist/zonos-elements/{p-7248fa2a.entry.js → p-7152f8ca.entry.js} +1 -1
- package/dist/zonos-elements/{p-377e09b5.system.entry.js → p-75571e99.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9fb03b4.entry.js → p-7562828c.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f7b25c0.system.entry.js → p-7f93ce41.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5972566.system.entry.js → p-82fec811.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-04a51a04.entry.js → p-a8b27301.entry.js} +1 -1
- package/dist/zonos-elements/{p-da96d02c.system.entry.js → p-c2e463b7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-d7bcfc30.entry.js → p-cfda42ba.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbb8b3ef.entry.js → p-d002dd35.entry.js} +1 -1
- package/dist/zonos-elements/{p-99924ecf.system.entry.js → p-e3b110c7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-91155a2e.entry.js → p-f5e54692.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-b325daa2.entry.js +0 -1
- package/dist/zonos-elements/p-d3743479.entry.js +0 -1
|
@@ -8749,6 +8749,7 @@ const prepCalculateLandedCost = () => {
|
|
|
8749
8749
|
const stripeBillingAddressData = stripeStore.stripeShippingSameAsBilling
|
|
8750
8750
|
? stripeStore.stripeAddressEventData
|
|
8751
8751
|
: stripeStore.stripeBillingAddressEventData;
|
|
8752
|
+
handleFetch.log({ stripeAddressData, stripeBillingAddressData }, 'info');
|
|
8752
8753
|
if (!(stripeAddressData === null || stripeAddressData === void 0 ? void 0 : stripeAddressData.complete) || !(stripeBillingAddressData === null || stripeBillingAddressData === void 0 ? void 0 : stripeBillingAddressData.complete)) {
|
|
8753
8754
|
throw new Error('Missing stripe address data');
|
|
8754
8755
|
}
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
|
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
99
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
100
|
-
const cdnUrl = "https://v1.3.
|
|
100
|
+
const cdnUrl = "https://v1.3.105.js.zonos.com";
|
|
101
101
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
102
102
|
if (!qaUrl &&
|
|
103
103
|
(cdnUrl.includes('test.') ||
|
|
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
|
|
|
281
281
|
}
|
|
282
282
|
return null;
|
|
283
283
|
})();
|
|
284
|
-
const ZONOS_URL = "https://v1.3.
|
|
285
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
286
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
287
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
284
|
+
const ZONOS_URL = "https://v1.3.105.js.zonos.com";
|
|
285
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.105";
|
|
286
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.105";
|
|
287
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.105";
|
|
288
288
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
289
289
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
290
290
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -299,7 +299,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
299
299
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
300
300
|
Zonos._paypalMockResponse = null;
|
|
301
301
|
Zonos.isBigCommerce = false;
|
|
302
|
-
Zonos.releaseDate = "
|
|
302
|
+
Zonos.releaseDate = "1729628934814";
|
|
303
303
|
Zonos.isLegacyCheckout = false;
|
|
304
304
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
305
305
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -309,7 +309,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
309
309
|
Zonos.isNpm = true;
|
|
310
310
|
Zonos.zonosQaUrl = null;
|
|
311
311
|
Zonos.zonosQaUrlApi = null;
|
|
312
|
-
Zonos.version = `v${"1.3.
|
|
312
|
+
Zonos.version = `v${"1.3.105"}`;
|
|
313
313
|
Zonos.modeAlerted = false;
|
|
314
314
|
Zonos.cartData = null;
|
|
315
315
|
Zonos.paypal = null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
4
|
-
const cart = require('./cart-
|
|
4
|
+
const cart = require('./cart-31e4e866.js');
|
|
5
5
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
6
6
|
const isDarkColor = require('./isDarkColor-87ee1eb7.js');
|
|
7
7
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
8
|
+
const paypal = require('./paypal-a101e3ca.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
10
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
10
|
+
const createCustomEvent = require('./createCustomEvent-18fbf653.js');
|
|
11
11
|
const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
|
+
const paypal = require('./paypal-a101e3ca.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
|
-
const createCustomEvent = require('./createCustomEvent-
|
|
10
|
+
const createCustomEvent = require('./createCustomEvent-18fbf653.js');
|
|
11
11
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
13
13
|
const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
|
|
@@ -523,8 +523,10 @@ const ZonosCheckout = class {
|
|
|
523
523
|
const phone = getParam('customerPhone');
|
|
524
524
|
const postal_code = getParam('customerZip') || '';
|
|
525
525
|
const state = getParam('customerState') || '';
|
|
526
|
-
|
|
527
|
-
|
|
526
|
+
/**
|
|
527
|
+
* If one of the value is null, no need to preset the default address
|
|
528
|
+
**/
|
|
529
|
+
if (!line1 || (!city && !state) || !name || !phone || !country) {
|
|
528
530
|
handleFetch.log('Missing required query params so it can not be prefilled', 'info', [
|
|
529
531
|
!line1 && 'line1',
|
|
530
532
|
!city && 'city',
|
|
@@ -538,7 +540,7 @@ const ZonosCheckout = class {
|
|
|
538
540
|
}
|
|
539
541
|
this.defaultAddress = {
|
|
540
542
|
address: {
|
|
541
|
-
city,
|
|
543
|
+
city: city || '',
|
|
542
544
|
country,
|
|
543
545
|
line1,
|
|
544
546
|
line2,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
9
|
require('./isDarkColor-87ee1eb7.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-aa729c61.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
9
|
const isDarkColor = require('./isDarkColor-87ee1eb7.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
7
|
-
const cart = require('./cart-
|
|
7
|
+
const cart = require('./cart-31e4e866.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-31e4e866.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-aa729c61.js');
|
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
6
|
const zonosStore = require('./zonosStore-b18fe6b6.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const cart = require('./cart-
|
|
8
|
+
const cart = require('./cart-31e4e866.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
|
-
const paypal = require('./paypal-
|
|
10
|
+
const paypal = require('./paypal-a101e3ca.js');
|
|
11
11
|
require('./isDarkColor-87ee1eb7.js');
|
|
12
12
|
require('./getBorderRadius-53c35cd1.js');
|
|
13
13
|
|
|
@@ -309,8 +309,10 @@ export class ZonosCheckout {
|
|
|
309
309
|
const phone = getParam('customerPhone');
|
|
310
310
|
const postal_code = getParam('customerZip') || '';
|
|
311
311
|
const state = getParam('customerState') || '';
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
/**
|
|
313
|
+
* If one of the value is null, no need to preset the default address
|
|
314
|
+
**/
|
|
315
|
+
if (!line1 || (!city && !state) || !name || !phone || !country) {
|
|
314
316
|
log('Missing required query params so it can not be prefilled', 'info', [
|
|
315
317
|
!line1 && 'line1',
|
|
316
318
|
!city && 'city',
|
|
@@ -324,7 +326,7 @@ export class ZonosCheckout {
|
|
|
324
326
|
}
|
|
325
327
|
this.defaultAddress = {
|
|
326
328
|
address: {
|
|
327
|
-
city,
|
|
329
|
+
city: city || '',
|
|
328
330
|
country,
|
|
329
331
|
line1,
|
|
330
332
|
line2,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { cartStore } from "../../store/checkout/cart";
|
|
2
2
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
3
|
+
import { log } from "../logging/log";
|
|
3
4
|
/**
|
|
4
5
|
* Extract value from translated object
|
|
5
6
|
*/
|
|
@@ -102,6 +103,7 @@ export const prepCalculateLandedCost = () => {
|
|
|
102
103
|
const stripeBillingAddressData = stripeStore.stripeShippingSameAsBilling
|
|
103
104
|
? stripeStore.stripeAddressEventData
|
|
104
105
|
: stripeStore.stripeBillingAddressEventData;
|
|
106
|
+
log({ stripeAddressData, stripeBillingAddressData }, 'info');
|
|
105
107
|
if (!(stripeAddressData === null || stripeAddressData === void 0 ? void 0 : stripeAddressData.complete) || !(stripeBillingAddressData === null || stripeBillingAddressData === void 0 ? void 0 : stripeBillingAddressData.complete)) {
|
|
106
108
|
throw new Error('Missing stripe address data');
|
|
107
109
|
}
|
|
@@ -8747,6 +8747,7 @@ const prepCalculateLandedCost = () => {
|
|
|
8747
8747
|
const stripeBillingAddressData = stripeStore.stripeShippingSameAsBilling
|
|
8748
8748
|
? stripeStore.stripeAddressEventData
|
|
8749
8749
|
: stripeStore.stripeBillingAddressEventData;
|
|
8750
|
+
log({ stripeAddressData, stripeBillingAddressData }, 'info');
|
|
8750
8751
|
if (!(stripeAddressData === null || stripeAddressData === void 0 ? void 0 : stripeAddressData.complete) || !(stripeBillingAddressData === null || stripeBillingAddressData === void 0 ? void 0 : stripeBillingAddressData.complete)) {
|
|
8751
8752
|
throw new Error('Missing stripe address data');
|
|
8752
8753
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as cartStore, l as localizationStore } from './cart-
|
|
1
|
+
import { d as cartStore, l as localizationStore } from './cart-5621d0fe.js';
|
|
2
2
|
import { z as zonosStore } from './zonosStore-7798ac16.js';
|
|
3
3
|
import { h as handleFetch } from './handleFetch-3dea7d46.js';
|
|
4
4
|
|
package/dist/esm/index.js
CHANGED
|
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
|
|
|
94
94
|
return null;
|
|
95
95
|
}
|
|
96
96
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
97
|
-
const cdnUrl = "https://v1.3.
|
|
97
|
+
const cdnUrl = "https://v1.3.105.js.zonos.com";
|
|
98
98
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
99
99
|
if (!qaUrl &&
|
|
100
100
|
(cdnUrl.includes('test.') ||
|
|
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
|
|
|
278
278
|
}
|
|
279
279
|
return null;
|
|
280
280
|
})();
|
|
281
|
-
const ZONOS_URL = "https://v1.3.
|
|
282
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
283
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
284
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
281
|
+
const ZONOS_URL = "https://v1.3.105.js.zonos.com";
|
|
282
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.105";
|
|
283
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.105";
|
|
284
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.105";
|
|
285
285
|
const INTER_FONT_URL = 'https://rsms.me';
|
|
286
286
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
287
287
|
const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
|
|
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
|
|
|
296
296
|
!!window.location.search.match(/\?.*(&*)zonosConversionTest/);
|
|
297
297
|
Zonos._paypalMockResponse = null;
|
|
298
298
|
Zonos.isBigCommerce = false;
|
|
299
|
-
Zonos.releaseDate = "
|
|
299
|
+
Zonos.releaseDate = "1729628934814";
|
|
300
300
|
Zonos.isLegacyCheckout = false;
|
|
301
301
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
302
302
|
window.location.search.includes('zonosShowBaseForeign');
|
|
@@ -306,7 +306,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
|
306
306
|
Zonos.isNpm = true;
|
|
307
307
|
Zonos.zonosQaUrl = null;
|
|
308
308
|
Zonos.zonosQaUrlApi = null;
|
|
309
|
-
Zonos.version = `v${"1.3.
|
|
309
|
+
Zonos.version = `v${"1.3.105"}`;
|
|
310
310
|
Zonos.modeAlerted = false;
|
|
311
311
|
Zonos.cartData = null;
|
|
312
312
|
Zonos.paypal = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z as zonosStore, c as createStore } from './zonosStore-7798ac16.js';
|
|
2
|
-
import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-
|
|
2
|
+
import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-5621d0fe.js';
|
|
3
3
|
import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-3dea7d46.js';
|
|
4
4
|
import { t as tinycolor } from './isDarkColor-4261bc3c.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-
|
|
2
|
+
import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-5621d0fe.js';
|
|
3
3
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
4
4
|
import { a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
5
5
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { d as cartStore, E as currencyFormat, t as translate, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-
|
|
2
|
+
import { d as cartStore, E as currencyFormat, t as translate, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-5621d0fe.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-
|
|
4
|
+
import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-869c30e1.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
6
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
6
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a9206df5.js';
|
|
7
7
|
import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog } from './handleFetch-3dea7d46.js';
|
|
9
9
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-
|
|
3
|
-
import { s as submitGtag, p as paypalInitScript } from './paypal-
|
|
2
|
+
import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-5621d0fe.js';
|
|
3
|
+
import { s as submitGtag, p as paypalInitScript } from './paypal-869c30e1.js';
|
|
4
4
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-7798ac16.js';
|
|
5
5
|
import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs } from './handleFetch-3dea7d46.js';
|
|
6
|
-
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-
|
|
6
|
+
import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a9206df5.js';
|
|
7
7
|
import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
9
9
|
import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
|
|
@@ -519,8 +519,10 @@ const ZonosCheckout = class {
|
|
|
519
519
|
const phone = getParam('customerPhone');
|
|
520
520
|
const postal_code = getParam('customerZip') || '';
|
|
521
521
|
const state = getParam('customerState') || '';
|
|
522
|
-
|
|
523
|
-
|
|
522
|
+
/**
|
|
523
|
+
* If one of the value is null, no need to preset the default address
|
|
524
|
+
**/
|
|
525
|
+
if (!line1 || (!city && !state) || !name || !phone || !country) {
|
|
524
526
|
log('Missing required query params so it can not be prefilled', 'info', [
|
|
525
527
|
!line1 && 'line1',
|
|
526
528
|
!city && 'city',
|
|
@@ -534,7 +536,7 @@ const ZonosCheckout = class {
|
|
|
534
536
|
}
|
|
535
537
|
this.defaultAddress = {
|
|
536
538
|
address: {
|
|
537
|
-
city,
|
|
539
|
+
city: city || '',
|
|
538
540
|
country,
|
|
539
541
|
line1,
|
|
540
542
|
line2,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-
|
|
2
|
+
import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-5621d0fe.js';
|
|
3
3
|
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
5
5
|
import './isDarkColor-4261bc3c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { l as localizationStore } from './cart-
|
|
2
|
+
import { l as localizationStore } from './cart-5621d0fe.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-3dea7d46.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-5621d0fe.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-
|
|
2
|
+
import { t as translate, l as localizationStore, E as currencyFormat } from './cart-5621d0fe.js';
|
|
3
3
|
import { z as zonosStore } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-7798ac16.js';
|
|
3
|
-
import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-
|
|
3
|
+
import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-5621d0fe.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { h as handleFetch, a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
|
|
2
|
-
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-
|
|
2
|
+
import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-5621d0fe.js';
|
|
3
3
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
4
4
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
5
5
|
import './handleFetch-3dea7d46.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
|
|
2
2
|
import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { j as stripeStore } from './cart-
|
|
4
|
+
import { j as stripeStore } from './cart-5621d0fe.js';
|
|
5
5
|
import { a as logError, l as log } from './handleFetch-3dea7d46.js';
|
|
6
|
-
import { c as paypalStoreInitButtons } from './paypal-
|
|
6
|
+
import { c as paypalStoreInitButtons } from './paypal-869c30e1.js';
|
|
7
7
|
import './isDarkColor-4261bc3c.js';
|
|
8
8
|
import './getBorderRadius-e55a9df1.js';
|
|
9
9
|
|